<?php

namespace aerovuelos\ReservaBundle\Entity;

use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * ReservasXPersonas
 *
 * @ORM\Table(name="reservas_x_personas")
 * @ORM\Entity
 */
class ReservasXPersonas {

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="asiento", type="integer", nullable=true)
     */
    private $asiento;

    /**
     * @var string
     *
     * @ORM\Column(name="codigo_embarque", type="string", nullable=true)
     */
    private $codigoEmbarque;

    /**
     * @var \Personas
     *
     * @ORM\ManyToOne(targetEntity="aerovuelos\PersonaBundle\Entity\Personas")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="personas_id", referencedColumnName="id")
     * })
     */
    private $personas;

    /**
     * @var \Reservas
     *
     * @ORM\ManyToOne(targetEntity="Reservas")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="reservas_id", referencedColumnName="id")
     * })
     */
    private $reservas;

    public function __construct() {
        
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId() {
        return $this->id;
    }

    /**
     * Set asiento
     *
     * @param integer $asiento
     * @return ReservasXPersonas
     */
    public function setAsiento($asiento) {
        $this->asiento = $asiento;

        return $this;
    }

    /**
     * Get asiento
     *
     * @return integer 
     */
    public function getAsiento() {
        return $this->asiento;
    }

    /**
     * Set personas
     *
     * @param \aerovuelos\PersonaBundle\Entity\Personas $personas
     * @return ReservasXPersonas
     */
    public function setPersonas(\aerovuelos\PersonaBundle\Entity\Personas $personas = null) {
        $this->personas = $personas;

        return $this;
    }

    /**
     * Get personas
     *
     * @return \aerovuelos\PersonaBundle\Entity\Personas 
     */
    public function getPersonas() {
        return $this->personas;
    }

    /**
     * Set reservas
     *
     * @param \aerovuelos\ReservaBundle\Entity\Reservas $reservas
     * @return ReservasXPersonas
     */
    public function setReservas(\aerovuelos\ReservaBundle\Entity\Reservas $reservas = null) {
        $this->reservas = $reservas;

        return $this;
    }

    /**
     * Get reservas
     *
     * @return \aerovuelos\ReservaBundle\Entity\Reservas 
     */
    public function getReservas() {
        return $this->reservas;
    }

    /**
     * Set codigoEmbarque
     *
     * @param string $codigoEmbarque
     * @return ReservasXPersonas
     */
    public function setCodigoEmbarque($codigoEmbarque) {
        $this->codigoEmbarque = $codigoEmbarque;

        return $this;
    }

    /**
     * Get codigoEmbarque
     *
     * @return string 
     */
    public function getCodigoEmbarque() {
        return $this->codigoEmbarque;
    }

}